package o;

import com.huawei.hwid.core.constants.HwAccountConstants;
import java.io.IOException;
import org.jsoup.nodes.Document.e;
import org.jsoup.nodes.Document.e.a;

public class gbo extends gbu {
    public /* bridge */ /* synthetic */ String attr(String str) {
        return super.attr(str);
    }

    public /* bridge */ /* synthetic */ boolean hasAttr(String str) {
        return super.hasAttr(str);
    }

    public /* bridge */ /* synthetic */ gbq ˋ(String str, String str2) {
        return super.ˋ(str, str2);
    }

    public /* bridge */ /* synthetic */ String ˏ() {
        return super.ˏ();
    }

    public /* bridge */ /* synthetic */ String ˏ(String str) {
        return super.ˏ(str);
    }

    public /* bridge */ /* synthetic */ int ॱ() {
        return super.ॱ();
    }

    public gbo(String str, String str2, String str3) {
        gbj.ˋ((Object) str);
        gbj.ˋ((Object) str2);
        gbj.ˋ((Object) str3);
        ˋ("name", str);
        ˋ("publicId", str2);
        if (ॱ("publicId")) {
            ˋ("pubSysKey", "PUBLIC");
        }
        ˋ("systemId", str3);
    }

    public void e_(String str) {
        if (str != null) {
            ˋ("pubSysKey", str);
        }
    }

    public String ˎ() {
        return "#doctype";
    }

    void ˋ(Appendable appendable, int i, e eVar) throws IOException {
        if (eVar.ˎ() != a.html || ॱ("publicId") || ॱ("systemId")) {
            appendable.append("<!DOCTYPE");
        } else {
            appendable.append("<!doctype");
        }
        if (ॱ("name")) {
            appendable.append(HwAccountConstants.BLANK).append(attr("name"));
        }
        if (ॱ("pubSysKey")) {
            appendable.append(HwAccountConstants.BLANK).append(attr("pubSysKey"));
        }
        if (ॱ("publicId")) {
            appendable.append(" \"").append(attr("publicId")).append('\"');
        }
        if (ॱ("systemId")) {
            appendable.append(" \"").append(attr("systemId")).append('\"');
        }
        appendable.append('>');
    }

    void ˊ(Appendable appendable, int i, e eVar) {
    }

    private boolean ॱ(String str) {
        return !gbk.ˋ(attr(str));
    }
}
